#ifndef _VARIABLE_
#define _VARIABLE_

#include "GeneralVariable.h"
#include <string>

using namespace std;

// Toto je jednoducha promenna.
class Variable: public GeneralVariable
{
public:
    Variable(string iName);
    virtual void CheckVariables(set<string>& oVariables, string iParentName);
    virtual ExpressionType* GetType(map<string, ExpressionType*>& iVarTypes, string iParentName);
    virtual void Accept(GeneralVisitor* iVisitor);

    virtual string GetVarName() { return fVarName; }

private:
    string fVarName;
};

#endif
